package com.zf.yichat.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "st_ticket_types")
public class StTicketTypes implements Serializable {
    @Id
    private Integer id;

    @Column(name = "ticket_type")
    private String ticketType;

    @Column(name = "ticket_name")
    private String ticketName;

    @Column(name = "ticket_desc")
    private String ticketDesc;

    @Column(name = "ticket_avatar")
    private String ticketAvatar;

    @Column(name = "validity_period")
    private Integer validityPeriod;

    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public StTicketTypes(Integer id, String ticketType, String ticketName, String ticketDesc, String ticketAvatar, Integer validityPeriod, Date createTime) {
        this.id = id;
        this.ticketType = ticketType;
        this.ticketName = ticketName;
        this.ticketDesc = ticketDesc;
        this.ticketAvatar = ticketAvatar;
        this.validityPeriod = validityPeriod;
        this.createTime = createTime;
    }

    public StTicketTypes() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return ticket_type
     */
    public String getTicketType() {
        return ticketType;
    }

    /**
     * @param ticketType
     */
    public void setTicketType(String ticketType) {
        this.ticketType = ticketType == null ? null : ticketType.trim();
    }

    /**
     * @return ticket_name
     */
    public String getTicketName() {
        return ticketName;
    }

    /**
     * @param ticketName
     */
    public void setTicketName(String ticketName) {
        this.ticketName = ticketName == null ? null : ticketName.trim();
    }

    /**
     * @return ticket_desc
     */
    public String getTicketDesc() {
        return ticketDesc;
    }

    /**
     * @param ticketDesc
     */
    public void setTicketDesc(String ticketDesc) {
        this.ticketDesc = ticketDesc == null ? null : ticketDesc.trim();
    }

    /**
     * @return ticket_avatar
     */
    public String getTicketAvatar() {
        return ticketAvatar;
    }

    /**
     * @param ticketAvatar
     */
    public void setTicketAvatar(String ticketAvatar) {
        this.ticketAvatar = ticketAvatar == null ? null : ticketAvatar.trim();
    }

    /**
     * @return validity_period
     */
    public Integer getValidityPeriod() {
        return validityPeriod;
    }

    /**
     * @param validityPeriod
     */
    public void setValidityPeriod(Integer validityPeriod) {
        this.validityPeriod = validityPeriod;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}